package cn.edu.scau.cmi.zeyang.singletons;

public class Singletons {

	private static Singletons singletions;
	private String name;

	public String getName() {
		return name;
	}

	private Singletons(String name){
		this.name = name;
	}

	public static Singletons getInstances(String name){
		if(singletions == null){
			singletions = new Singletons(name);
		}
		return singletions;
	}
}
